#include <iostream>
#include "Taskqueue.h"
#include "Producer.h"
#include "Consumer.h"
#include <thread>
using namespace std;
int main(int argc, char * argv[]){
    Taskqueue taskque(5);
    Producer taskpro;
    Consumer taskcon;
    thread thPro(&Producer::produce,&taskpro,std::ref(taskque));
    thread thCon(&Consumer::consumer,&taskcon,std::ref(taskque)); 
    thPro.join();
    thCon.join();
    return 0;
}

